package com.ctshk.rpc.workflow.req;

import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 我的审批中心
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-28
 */
@Data
@ApiModel(description="我的审批中心")
public class ApprovalReq extends PageReq implements Serializable {

    @NotNull(message = "type必填")
    @ApiModelProperty(value = "1 由我发起, 2 待我审批, 3 我已审批", required = true)
    private Integer type;

    @ApiModelProperty(value = "发起人id", hidden = true)
    private String sponsorId;

    @ApiModelProperty(value = "审批编号")
    private String approvalNumber;

    @ApiModelProperty(value = "审批类型", dataType = "ApprovalType")
    private Integer approvalType;

    @ApiModelProperty(value = "审批状态(0 已撤回 1 待审批 2 审批中 3 审批不通过 4 审批通过)")
    private Integer status;

    @ApiModelProperty(value = "选择开始时间")
    private String startTime;

    @ApiModelProperty(value = "选择结束时间")
    private String endTime;

}
